import React from 'react';
import ReactDOM from 'react-dom';

import { AliveScope } from 'react-activation'
// 导入dav store的数据
import { Provider } from 'react-redux'
import store from '@/store/dav'
import '@/assets/fonts/iconfont.css';
import './index.css';
import './assets/styles/base.scss'
import App from '@/App';
import reportWebVitals from '@/reportWebVitals';
import { get_request } from '@/apis/getApiClass'
React.Component.prototype.$get_request = get_request
// console.log(React);

ReactDOM.render(
  // <React.StrictMode>
    // {/* 将组件包裹 */}
    <Provider store={store}>
      <AliveScope>
        <App />
      </AliveScope>
    </Provider>
  // {/* </React.StrictMode> */}
  ,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
